package com.studyroom.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2022-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    //用户名
    private String username;
    //密码
    private String password;
    //电话号码
    private String phone;
    //性别
    private String sex;
    //出生日期
    private LocalDateTime birthday;
    //用户头像
    private String icon;
    //用户身份  管理员 0 or 普通用户 1
    private Integer status;


}
